package com.huaixia18.systemnotice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huaixia18.systemnotice.domain.EventRemind;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EventRemindMapper extends BaseMapper<EventRemind> {

    // 根据recipientId和action查询事件提醒
    List<EventRemind> findByRecipientIdAndAction(Long recipientId, String action);

    // 根据sourceId和sourceType查询事件提醒
    List<EventRemind> findBySourceIdAndSourceType(Long sourceId, String sourceType);

}
